package com.study.example.centerserver;

import com.sparrow.cache.EnableSparrowCache;
import com.sparrow.common.EnableSparrowCommon;
import com.sparrow.event.EnableSparrowEvent;
import com.sparrow.resource.EnableSparrowResource;
import com.sparrow.rpc.EnableSparrowRpc;
import com.sparrow.rpc.manager.GameRpcNodeManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableSparrowCommon
@EnableSparrowCache
@EnableSparrowResource
@EnableSparrowRpc
@EnableSparrowEvent
@EnableTransactionManagement
@ComponentScan("com.study.example.centerserver")
public class CenterConfig  {
    @Bean
    public GameRpcNodeManager nodeMgr() {
        return new GameRpcNodeManager();
    }

}
